﻿using System;
using System.IO;

namespace PicServer.Test
{
    class Program
    {
        static void Main(string[] args)
        {
            PicWCFService.PicServiceClient client = new PicWCFService.PicServiceClient();
            Byte[] fileData = File.ReadAllBytes(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Files") + "\\zhu.jpg");
            for (Int32 i = 0; i < 1; i++)
            {
                Int64 unicode = client.SaveImage(fileData);
                Console.WriteLine(unicode + ":" + client.GetImage(unicode).Length);
            }
            Console.ReadKey();
        }
    }
}
